package com.tomvian.tools 
{
	import flash.net.navigateToURL;
	import flash.net.URLRequest;
	/**
	 * Socialize
	 * @author Thomas Vian
	 */
	public class Socialize
	{
		//--------------------------------------------------------------------------
		//
		//  Properties
		//
		//--------------------------------------------------------------------------
		
		//--------------------------------------------------------------------------
		//
		//  Getters / Setters
		//
		//--------------------------------------------------------------------------
		
		//--------------------------------------------------------------------------
		//
		//  Constructor
		//
		//--------------------------------------------------------------------------
		
		public function Socialize() 
		{
			
		}
		
		//--------------------------------------------------------------------------
		//
		//  Methods
		//
		//--------------------------------------------------------------------------
		
		public static function postToFacebook(url:String, title:String):void
		{
			navigateToURL(new URLRequest("http://www.facebook.com/sharer.php?u=" + url + "&t=" + title), "_blank");
		}
		
		public static function postToTwitter(tweet:String):void
		{
			navigateToURL(new URLRequest("https://twitter.com/?status=" + tweet), "_blank");
		}
	}
}